﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace DSC
{
    public partial class frmActionHistory : Form
    {
        public frmActionHistory()
        {
            InitializeComponent();
        }
        public frmActionHistory(string nguoidung, string ngay, string hanhdong,string noidung)
        {
            InitializeComponent();
            lblNguoiThaoTac.Text = nguoidung;
            lblNgayThaoTac.Text = ngay;
            lblHanhdong.Text = hanhdong;
            string[] temp = noidung.Split(new string[] { "----" }, StringSplitOptions.RemoveEmptyEntries);
            if (temp.Length > 1)
            {
                txtbefore.Text = temp[0];
                txtafter.Text = temp[1];
            }
            else
                txtafter.Text = noidung;
        }

    }
}
